import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SeqRunBusinessNpcHelper } from "./SeqRunBusinessNpcHelper";
type int = number;
//class SRunBusinessInfo
    
    export  class SRunBusinessInfo extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SRunBusinessInfo();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeDate(this.nextRefreshDt);
            SeqRunBusinessNpcHelper.write(arg1, this.runBusinessNpcs);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.nextRefreshDt = arg1.readDate();
            this.runBusinessNpcs = SeqRunBusinessNpcHelper.read(arg1);
            return;
        }

        public /* const */_type: int=101;

        public /* var */nextRefreshDt: Date;

        public /* var */runBusinessNpcs: Array<any>;

        public static /* var */_regist: SRunBusinessInfo;
    }

            SRunBusinessInfo._regist = new SRunBusinessInfo(true);
        